#!/usr/bin/env node

const Koa=require('koa'),
      Router=require('koa-router'),
      bodyparse=require('koa-bodyparser')
      authors=require("./routes/authors.js")
const log=console.log,
      router=new Router(),
      app=new Koa();

app.use(bodyparse({enableTypes:['json','form','text']}));

app.use(authors.routes());//路由模块在所有中间件之后加载

app.listen(8080);













